﻿using CsvHelper.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace com.ytocargo.Core.GeneralDocs
{
    public sealed class GeneralDocMap : ClassMap<GeneralDoc>
    {
        public GeneralDocMap()
        {
            Map(m => m.Id).Name("ID");
            Map(m => m.Title).Name("Title");
            Map(m => m.Content).Name("Content");
            Map(m => m.ParentId).Name("ParentId");
            Map(m => m.Document).Name("Document");
            Map(m => m.IS_MODIFIED).Name("IS_MODIFIED");
            Map(m => m.PdfName).Name("PdfName");
            Map(m => m.ValidFrom).Name("ValidFrom");
            Map(m => m.ValidUntil).Name("ValidUntil");
            Map(m => m.FileSize).Name("FileSize");
            Map(m => m.MD5).Name("MD5");
        }
    }
}
